class Project < ActiveRecord::Base
  has_many :deliverables

  def Project.get(project_name)
    Project.find_by_name(project_name)|| Project.new(:name => project_name) 
  end

  def Project.name_starts_with(project_name)
    Project.find(:all, :order => "name asc",
                 :conditions => ['name LIKE ?', project_name<<"%"])
  end

end
